Activity and View [closed]
        Posted  
        
            by 
                CYB
            
        on Programmers
        
        See other posts from Programmers
        
            or by CYB
        
        
        
        Published on 2012-12-11T18:32:50Z
        Indexed on 
            2012/12/11
            23:14 UTC
        
        
        Read the original article
        Hit count: 174
        
android
Now, I'm going to create an app that can reserve something. There's three function like menu, reserve, and search. However, I don't know that I should create them as three Activities or just use three views as the function. I want to switch to other function by onclicklistener.
Below is my onClickListener,
private OnClickListener listener = new OnClickListener(){ public void onClick(View v) { switch(v.getId()){ case R.id.fuiButton1: break;
case R.id.fuiButton2: break; case R.id.fuiButton3: break; } } };
Which is the best choice ?
© Programmers or respective owner